package com.wxy.ej.flow.modules.taskflow.service.beanService;

import com.rt.easyjava.common.service.BaseV3ServiceImpl;
import com.wxy.ej.flow.modules.taskflow.bean.TaskFlow;
import com.wxy.ej.flow.modules.taskflow.dto.TaskFlowDto;
import com.wxy.ej.flow.modules.taskflow.repository.mapper.TaskFlowMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 *  服务实现类
 * @author wuxiaoyong
 * @since 2022-01-29
 */
@Slf4j
@Service(value = "taskFlowService")
@Transactional(propagation = Propagation.REQUIRED,rollbackFor = Exception.class)
public class TaskFlowService extends BaseV3ServiceImpl<TaskFlowMapper, TaskFlow, TaskFlowDto>{

    /*public Result saveNodeJson(long taskId, String flowData) {
        Task task = baseMapper.selectById(taskId);
        task.setFlowData(flowData);
        baseMapper.updateById(task);
        return Result.builder();
    }*/
}
